终止索引单据[TableAbortApply]

TableAbortApply

终止索引单据

手动撤销(终止)申请单据

请求地址

POST
http://OmsAddress/app/newoms.php/webservice/business/table/abortapply?cmd=10022&ip-type=webservicerest&access-token=AccessTokenVal

POST请求参数说明

参数格式是否必填说明
apply_id整型是审核单ID

Data参数

使用json格式表示记录相关信息,示例如下:

{
    "uid": 10
}

返回语法

返回参数说明

  1. 返回状态码不为200时,表示请求失败,返回数据为请求失败的信息

  2. 返回状态码为200,表示请求成功

请求示例

通过 curl 方法发起请求

命令中的参数请参考本页中的“POST请求参数说明”,access-token的获取方法详见:获取access-token

curl -H “Content-type: application/json” -X “POST” -d ’{
    “uid”: 10
}’ http://omsaddress/app/newoms.php/webservice/business/table/abortapply?cmd=10022&ip-type=webservicerest&access-token=

返回示例

成功返回示例

http请求的Status=200

true

错误返回

http请求的Status!=200

{
    "name": "Unauthorized",
    "message": "You are requesting with an invalid credential.",
    "code": 0,
    "status": 401,
    "type": "yii\\web UnauthorizedHttpException"
}
{
    "source_ip": "ip:10.29.89.51 not in whitelist"
}